Markup Languages and Reproducible Programming in Statistics

Shelob about to leap on Frodo

Shelob about to leap on Frodo

if(!require(knitr)) install.packages("knitr")
library(knitr)
fig1 <- "http://tolkiengateway.net/w/images/b/b9/John_Howe_-_
         Shelob_About_to_Leap_on_Frodo.jpg"
include_graphics(fig1)

The journey of the Fellowship

How many fish does Gollum need to maintain his body temperature?

\[ \begin{aligned} P &= e \sigma k (2 L \pi r + 2 \pi r^2)(T_g^4 - T_c^4) \\ \\ P &= (\frac{117 \ \text{J}}{1 \ \text{s}})(\frac{1 \ \text{fish}}{2.13 \cdot 10^6 \ \text{J}}) = 5.49 \cdot 10^{-5} \ \text{fish/s} \\ \\ P &= (\frac{5.49 \cdot 10^{-5} \ \text{fish}}{1 \ \text{s}})(\frac{3600 \ \text{s}}{1 \ \text{hr}})(\frac{24 \ \text{hr}}{1 \ \text{day}}) = 4.7 \ \text{fish/day} \end{aligned} \]

The Song of Beren and Lúthien

When winter passed, she came again,  
And her song released the sudden spring,
Like rising lark, and falling rain,  
And melting water bubbling.  
He saw the elven-flowers spring  
About her feet, and healed again  
He longed by her to dance and sing  
Upon the grass untroubling.  

Again she fled, but swift he came.  
Tinúviel! Tinúviel!  
He called her by her elvish name;  
And there she halted listening.  
One moment stood she, and a spell  
His voice laid on her: Beren came,  
And doom fell on Tinúviel  
That in his arms lay glistening.  

As Beren looked into her eyes  
Within the shadows of her hair,  
The trembling starlight of the skies  
He saw there mirrored shimmering.  
Tinúviel the elven-fair,  
Immortal maiden elven-wise,  
About him cast her shadowy hair  
And arms like silver glimmering.  

Long was the way that fate them bore,  
O’er stony mountains cold and grey,  
Through halls of ireon and darkling door,
And woods of nightshade morrowless.  
The Sundering Seas between them lay,  
And yet at last they met once more,  
And long ago they passed away  
In the forest singing sorrowless.  

Demographic information

References

Lord of the Rings Journey. 2014. https://imgur.com/gallery/r9Vhtmt.

Mooney, Paul. 2018. “Lord of the Rings Data.” November 4, 2018. https://www.kaggle.com/paultimothymooney/lord-of-the-rings-data?select=lotr_characters.csv.

Tolkien, J. R.R. 1977. The Silmarillion. Boston: Houghton Mifflin.